package cn.cheln.support.inputmethod;

import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import java.util.Timer;
import java.util.TimerTask;

public class InputMethodUtil
{
  public static void hideInput(Context paramContext, View paramView)
  {
    new Timer().schedule(new TimerTask(paramContext)
    {
      public void run()
      {
        ((InputMethodManager)InputMethodUtil.this.getSystemService("input_method")).toggleSoftInput(0, 2);
      }
    }
    , 500L);
  }

  public static void showInput(Context paramContext, View paramView)
  {
    new Timer().schedule(new TimerTask(paramContext, paramView)
    {
      public void run()
      {
        InputMethodManager localInputMethodManager = (InputMethodManager)InputMethodUtil.this.getSystemService("input_method");
        if (this.val$view != null);
        for (View localView = this.val$view; ; localView = ((Activity)InputMethodUtil.this).getCurrentFocus())
        {
          localInputMethodManager.showSoftInput(localView, 2);
          return;
        }
      }
    }
    , 500L);
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     cn.cheln.support.inputmethod.InputMethodUtil
 * JD-Core Version:    0.5.2
 */